package com.hongxun.design.bean;

import android.view.View;

import java.util.List;

import com.hongxun.design.constant.Constant;
import com.hongxun.design.listeners.ListenerSet;

/**
 * Created by zerdoor_pc on 2016/5/11.
 * 拍照listview item信息
 */
public class PhotoGraphBean {
    public int Type;//item类型
    public String Title;//item标题
    public String Position;//item拍摄位置描述
    public String Number;//需要张数描述
    public int NeedNumber;//需要张数
    public String LackNumber;//还缺少张数描述
    public List<PhotoBean> Photos;//相片集
    public View.OnClickListener listener;
    public View.OnClickListener listener_right;

    public PhotoGraphBean(int type, String title, String position, String number, int needNumber, String lackNumber, List<PhotoBean> photos, View.OnClickListener listener, View.OnClickListener listener_right) {
        Type = type;
        Title = title;
        Position = position;
        Number = number;
        NeedNumber = needNumber;
        LackNumber = lackNumber;
        Photos = photos;
        this.listener = listener;
        this.listener_right = listener_right;

        if (listener == null) {
            this.listener = ListenerSet.getPhotoGrapOpenCameraListener(type);//调启相机
        }
        if (listener_right==null&&Type!= Constant.TypePosition){
            this.listener_right=  ListenerSet.getPhotoGrapImageClickListener(type, this);//跳转界面
        }
    }

    public int getType() {
        return Type;
    }

    public void setType(int type) {
        Type = type;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getPosition() {
        return Position;
    }

    public void setPosition(String position) {
        Position = position;
    }

    public String getNumber() {
        return Number;
    }

    public void setNumber(String number) {
        Number = number;
    }

    public int getNeedNumber() {
        return NeedNumber;
    }

    public void setNeedNumber(int needNumber) {
        NeedNumber = needNumber;
    }

    public String getLackNumber() {
        return LackNumber;
    }

    public void setLackNumber(String lackNumber) {
        LackNumber = lackNumber;
    }

    public List<PhotoBean> getPhotos() {
        return Photos;
    }

    public void setPhotos(List<PhotoBean> photos) {
        Photos = photos;
    }

    public View.OnClickListener getListener() {
        return listener;
    }

    public void setListener(View.OnClickListener listener) {
        this.listener = listener;
    }

    public View.OnClickListener getListener_right() {
        return listener_right;
    }

    public void setListener_right(View.OnClickListener listener_right) {
        this.listener_right = listener_right;
    }
}
